package com.aliyun;
/**
 * 阿里云OSS上传类
 */

import com.aliyun.oss.ClientConfiguration;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.common.utils.IOUtils;
import com.aliyun.oss.model.AccessControlList;
import com.aliyun.oss.model.OSSObject;
import com.aliyun.oss.model.ObjectMetadata;
import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.*;
import java.net.URL;
import java.util.Calendar;

@Component
@PropertySource( "classpath:oss-jiuyi.properties")
@ConfigurationProperties(prefix = "jiuyi")
@Data
public class OssUpload_Jiuyi  {


	@Value("${oss}")
	private  boolean oss;

	private int timeout=5000;
	private  String accessKeyId;

	private String accessKeySecret;

	private  String bucketName;

	private  String ossEndpoint;

	private  String url;




	private OSSClient ossClient;

	public OssUpload_Jiuyi() {
	}

}
